import request from '@/utils/request'
//上传视频信息表单
export function uploadComments(data) {
  return request.post('/comments/addComment', data)
}
//获取视频最新评论
export function getNewComments(videoId) {
  return request.get('/comments/getCommentNewTree', { params: { videoId } })
}
//获取视频最热评论
export function getHotComments(params) {
  return request.get('/comments/getCommentHotTree', { params })
}

//点赞评论
export function likeComments(commentId) {
  return request.get('/comments/likeComment', { params: { commentId } })
}

//反对评论
export function disLikeComments(commentId) {
  return request.get('/comments/dislikeComment', { params: { commentId } })
}

